package com.ruoyi.system.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.system.domain.YyHospitalDepartment;
import org.apache.ibatis.annotations.Select;

/**
 * 科室Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-25
 */
public interface YyHospitalDepartmentMapper
{
    /**
     * 查询科室
     *
     * @param departmentId 科室主键
     * @return 科室
     */
    public YyHospitalDepartment selectYyHospitalDepartmentByDepartmentId(Long departmentId);

    /**
     * 查询科室列表
     *
     * @param yyHospitalDepartment 科室
     * @return 科室集合
     */
    public List<YyHospitalDepartment> selectYyHospitalDepartmentList(YyHospitalDepartment yyHospitalDepartment);

    /**
     * 新增科室
     *
     * @param yyHospitalDepartment 科室
     * @return 结果
     */
    public int insertYyHospitalDepartment(YyHospitalDepartment yyHospitalDepartment);

    /**
     * 修改科室
     *
     * @param yyHospitalDepartment 科室
     * @return 结果
     */
    public int updateYyHospitalDepartment(YyHospitalDepartment yyHospitalDepartment);

    /**
     * 删除科室
     *
     * @param departmentId 科室主键
     * @return 结果
     */
    public int deleteYyHospitalDepartmentByDepartmentId(Long departmentId);

    /**
     * 批量删除科室
     *
     * @param departmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteYyHospitalDepartmentByDepartmentIds(String[] departmentIds);


    List<Map<String, Object>> selectYyScheduleList();
}
